function test() {
  console.log(b);  //undefine
  if (a) {
    var b = 100     //undefine
  }
  c = 234
  console.log(c);   //234
}
var a;
test()
a = 10
console.log(c);   //234